﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication2.WebForm2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <h1>登录</h1>
            账号：
            <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="true"></asp:TextBox>
            <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="名字有误" OnServerValidate="CustomValidator1_ServerValidate" Display="Dynamic"></asp:CustomValidator>
            <asp:CustomValidator ID="CustomValidator2" runat="server" ErrorMessage="名字不能为admin" OnServerValidate="CustomValidator2_ServerValidate" Display="Dynamic"></asp:CustomValidator>
            <asp:CustomValidator ID="LoadingHas" runat="server" ErrorMessage="不存在这个账号" OnServerValidate="LoadingHas_ServerValidate" Display="Dynamic"></asp:CustomValidator>
            <br />
            密码：
            <asp:TextBox ID="TextBox2" runat="server" TextMode="Password" AutoPostBack="true"></asp:TextBox>
            <asp:CustomValidator ID="PasswordCustom" runat="server" ErrorMessage="密码错误" OnServerValidate="PasswordCustom_ServerValidate"></asp:CustomValidator>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
            <br />
            <asp:Button ID="Button1" runat="server" Text="登录" OnClick="Button1_Click" />
            <asp:Literal ID="Literal1" runat="server"></asp:Literal>
        </div>
    </form>
</body>
</html>
